<?php
class cLocale
    {
	var $ERRORS="";
	var $LABEL="";
	var $MESSAGE="";
	var $MENU="";

	function cLocale($lang_file,$lang_code="engb")
	    {
		$lang_code=($lang_code) ? $lang_code : "engb";

        include("locale/engb/$lang_file");
		@include("locale/$lang_code/$lang_file");

		if(count($ERRORS)>0)
		    $this->ERRORS[$lang_file]= $ERRORS;

		if(count($LABEL)>0)
	    	$this->LABEL[$lang_file]= $LABEL;

		if(count($MESSAGE)>0)
		    $this->MESSAGE[$lang_file]=$MESSAGE;

		if(count($MENU)>0)
		    $this->MENU[$lang_file]=$MENU;

		}
	}
?>